﻿using System.IO.Ports;
using System.Text;

namespace Zhy.Communication
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");

            #region 串口代码实例
            //SerialPortCommunication serialPort =new SerialPortCommunication();
            //serialPort.SerialPortTest();
            #endregion

            #region 网口代码实例
            SocketCommunication socket=new SocketCommunication();
            socket.SocketTest();
            #endregion

            Console.ReadKey();
        }

        
    }
}
